<script setup lang="ts"></script>

<template>
  <div class="page">
    <div class="page-container">
      <div class="container">
        <div class="container-top">
          <div class="user-avatar">
            <img src="@/assets/img/personal-card/avatar.png" alt="" />
          </div>
          <h3 class="user-name">章岸基</h3>
          <div class="user-company">
            <img src="@/assets/img/personal-card/company.png" alt="" />
            <span>江苏航海运输有限公司</span>
          </div>
        </div>
        <div class="container-bottom">
          <div class="info-item">
            <span class="label">
              <img src="@/assets/img/personal-card/phone.png" alt="" />
              <span>手机号</span>
            </span>
            <span class="value">18878457845</span>
          </div>
          <div class="info-item">
            <span class="label">
              <img src="@/assets/img/personal-card/ship.png" alt="" />
              <span>船舶</span>
            </span>
            <span class="value">东航一号船</span>
          </div>
          <div class="info-item">
            <span class="label">
              <img src="@/assets/img/personal-card/post.png" alt="" />
              <span>职务</span>
            </span>
            <span class="value">船长</span>
          </div>
          <div class="info-item">
            <span class="label">
              <img src="@/assets/img/personal-card/time.png" alt="" />
              <span>上船时间</span>
            </span>
            <span class="value">2022-02-01</span>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<style scoped lang="scss">
.page {
  width: 100vw;
  height: 100vh;
  background: url('@/assets/img/personal-card/bg.png') no-repeat;
  background-size: 100% 100%;
  font-size: 12px;

  .page-container {
    width: 100%;
    overflow-y: scroll;
    padding: 28px;

    .container {
      width: 100%;
      height: 480px;
      margin-top: 110px;
      background: url('@/assets/img/personal-card/container-bg.png') no-repeat;
      background-size: 100%;

      .container-top {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        height: 163px;

        .user-avatar {
          width: 80px;
          height: 80px;
          background-color: #fff;
          padding: 3px;
          border-radius: 50%;
          overflow: hidden;
          position: absolute;
          top: -40px;
          box-shadow: 0px 3px 16px rgba(156, 156, 156, 0.16);

          img {
            width: 100%;
            height: 100%;
            display: block;
            border-radius: 50%;
          }
        }

        .user-name {
          margin-top: 58px;
          font-weight: bold;
          font-size: 19px;
          color: #333333;
        }

        .user-company {
          font-size: 15px;
          font-weight: 500;
          color: #0470dc;
          margin-top: 25px;
          display: flex;
          align-items: center;

          img {
            width: 18px;
            height: 18px;
            margin-right: 5px;
          }
        }
      }

      .container-bottom {
        padding: 10px 28px;

        .info-item {
          padding: 16px 0;
          display: flex;
          justify-content: space-between;
          align-items: center;
          font-size: 16px;
          font-weight: 500;
          color: #333333;
          margin-bottom: 12px;
          .label {
            display: flex;
            align-items: center;
            img {
              width: 17px;
              height: 17px;
              margin-right: 8px;
            }
          }
        }
      }
    }
  }
}
</style>
